﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace httphelper
{
    public class HttpPack
    {
        public HttpPack(String url)
        {
            this.url = url;
            headers = new List<HeaderModel>();
        }
        public String url { get; set; }
        /// <summary>
        /// post提交的数据，仅对post提交有效
        /// </summary>
        public String postStr { get; set; }
        /// <summary>
        /// 默认
        /// </summary>
        public String ContentType { get; set; }
        public CookieContainer cookieContainer { get; set; }

        public List<HeaderModel> headers { get; set; }

    }

    public class HeaderModel
    {
        public String key { get; set; }
        public String value { get; set; }
    }
}
